package xyz.zhzby.cyzx.oj.mapper;

import xyz.zhzby.cyzx.oj.dto.response.SubmissionResponse;
import xyz.zhzby.cyzx.oj.entity.Submission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import xyz.zhzby.cyzx.servicebase.domain.RestResponse;

import java.util.List;

/**
 * <p>
 * 评测记录 Mapper 接口
 * </p>
 *
 * @author zby
 * @since 2021-12-26
 */
public interface SubmissionMapper extends BaseMapper<Submission> {

    List<SubmissionResponse> getSubmissionList(Long userId, Long problemId, int type);

    SubmissionResponse getSubmissionById(Long submissionId);

}
